package com.explorati.design_pattern.behavior.state;

public class PlayState extends CourseVideoState {

	@Override
	public void play() {
		// 在内部切换到另一状态
		System.out.println("正常播放课程视频状态");
	}

	@Override
	public void speed() {
		// 在内部切换到另一状态
		super.courseVideoContext.setCourseVideoState(CourseVideoContext.SPEED_STATE);
	}

	@Override
	public void pause() {
		super.courseVideoContext.setCourseVideoState(CourseVideoContext.PAUSE_STATE);
	}

	@Override
	public void stop() {
		super.courseVideoContext.setCourseVideoState(CourseVideoContext.STOP_STATE);
	}

}
